﻿<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeFile="ModifyUserAddr.aspx.cs" Inherits="Member_ModifyUserAddr" Title="无标题页" %>
<%@ Register TagPrefix="sc1" Namespace="Goshopping.Web" %>
<%@ Register Assembly="GoShopping.Components" Namespace="BaseText" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript" src="../Script/AreaSelect.js"></script>
    <style type="text/css">
        .style2
        {
            height: 19px;
            width: 1%;
        }
        .style3
        {
            width: 15px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div>
      <asp:Repeater ID="RptAddress" runat="server" OnItemDataBound="RptAddress_ItemDataBound">
        <HeaderTemplate>
        <table border="0" cellpadding="0" cellspacing="0" width="800px" style="text-align:left">
        <thead>
<%--        <th>
        </th>--%>
<%--        <th align="left">
        发货地址
        </th>--%>
        </thead>
        </HeaderTemplate>
        <FooterTemplate>
        </table>
        </FooterTemplate>                
        <ItemTemplate>
        <tbody>
        <tr>
        <td>
            <sc1:CustomRadioButton runat="server" ID="rbAddress" GroupName="grpRb"/>
        </td>

        <td>
            <asp:Label ID="lblID" runat="server" Text='<%# Eval("ID") %>' Visible="false"></asp:Label>
            <b>姓名:</b><asp:Label ID="lblName" runat="server" Text='<%# Eval("AcceptPeople") %>'></asp:Label>&nbsp;&nbsp;<b>配送地址:</b><asp:Label ID="lblPro" runat="server" Text='<%# GetRelatedColumn.GetProvinceName(Eval("ProvinceID")) %>'></asp:Label>
            <asp:Label ID="lblCity" runat="server" Text='<%# GetRelatedColumn.GetCityName(Eval("CityID")) %>'></asp:Label><asp:Label ID="lblCounty" runat="server" Text='<%# GetRelatedColumn.GetCountyName(Eval("CountyID")) %>'></asp:Label>
            <asp:Label ID="lblStreet" runat="server" Text='<%# Eval("DetailStreet") %>'></asp:Label>&nbsp;&nbsp;<b>邮编:</b><asp:Label ID="lblZipCode" runat="server" Text='<%# Eval("ZipCode") %>'></asp:Label><br />
            <b>手机:</b><asp:Label ID="lblPhone" runat="server" Text='<%# Eval("AcceptPeopleMobileTel") %>'></asp:Label>&nbsp;&nbsp;<b>电话:</b><asp:Label ID="lblFixedPhone" runat="server" Text='<%# Eval("AcceptPeopleTel") %>'></asp:Label>      
            <%--<asp:Label ID="lbl" runat="server" Text='<%#Container.DataItem %>'></asp:Label>--%>
        </td>
        </tr>
        </tbody>
        </ItemTemplate>
        </asp:Repeater>
        <asp:LinkButton ID="btnDelAddr" runat="server" onclick="btnDelAddr_Click" 
            CausesValidation="False">删除选中的地址</asp:LinkButton>
        <br />
        </div>
        <table border="0" cellpadding="0" cellspacing="0" style="height:300px">
                <tr>
                    <td valign="middle" align="left" class="style3"></td>
                    <td valign="middle" width="50%" align="left">姓名:<cc1:ZLTextBox ID="txtFirstName" 
                            runat="server" InputType="varchars"></cc1:ZLTextBox>
                        <asp:RequiredFieldValidator ID="valFirstName" runat="server" 
                            ControlToValidate="txtFirstName" ErrorMessage="请输入姓名" Display="Dynamic">请输入姓名</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td valign="middle" align="left" class="style3">&nbsp;</td>
                    <td valign="middle" align="left">省份:<select ID="ProvinceSelect" runat="server" 
                            onchange="SetCity1(this)">
                        </select> 城市<select ID="CitySelect" runat="server" 
                            onchange="SetCounty1(this)">
                        </select> &nbsp; 区/县<select ID="CountySelect" runat="server">
                        </select></td>
                </tr>
                <tr>
                    <td align="left" valign="middle" class="style3">
                        &nbsp;</td>
                    <td align="left" valign="middle">
                        街道地址:<asp:TextBox ID="txtAddress1" runat="server" Columns="55" 
                            MaxLength="80" Width="330px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="valAddress1" runat="server" 
                            ControlToValidate="txtAddress1" 
                            ErrorMessage="请输入街道地址" Display="Dynamic">请输入街道地址</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td valign="middle" align="left" class="style2">&nbsp;</td>
                    <td style="height: 19px" valign="middle" align="left">邮编:<asp:TextBox 
                            ID="txtZip" runat="server" Columns="12" 
                            MaxLength="20" Width="100px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="valZip" runat="server" 
                            ControlToValidate="txtZip" Display="Dynamic" 
                            ErrorMessage="请输入邮编"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="valZip1" runat="server" 
                            ControlToValidate="txtZip" Display="Dynamic" 
                            ErrorMessage="邮编是6位数字，如:710400" ValidationExpression="\d{6}"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td valign="middle" align="left" class="style3">&nbsp;</td>
                    <td valign="middle" align="left">手机:<asp:TextBox ID="txtPhone" runat="server" Columns="20"
                            MaxLength="20" Width="155px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="valPhone" runat="server" ControlToValidate="txtPhone"
                            ErrorMessage="请输入一个手机号" Display="Dynamic"></asp:RequiredFieldValidator>
                    </td>
                </tr>
               <tr>
                   <td align="left" valign="middle" class="style3">
                       &nbsp;</td>
                   <td align="left" valign="middle">
                       电话:<cc1:ZLTextBox ID="txtFixedPhone" runat="server" InputType="varchars" 
                           Width="155px" FloatLength="2" IsDisplayTime="True" Language="Chinese" 
                           onblurCssName="" onfocusCssName="" ShowMessage="" textValue=""></cc1:ZLTextBox>
                       <asp:RegularExpressionValidator ID="valPhone1" runat="server" 
                           ControlToValidate="txtFixedPhone" Display="Dynamic" 
                           ErrorMessage="格式不正确." 
                           ValidationExpression="(\(\d{3}\)|\d{3}-)?\d{8}">电话不正确.如:010-12345678</asp:RegularExpressionValidator>
                   </td>
               </tr>
               <tr>
                   <td align="left" valign="middle" class="style3">
                       &nbsp;</td>
                   <td align="left" valign="middle">
                       <asp:LinkButton ID="btnAddAddr" runat="server" onclick="btnAddAddr_Click">添加地址</asp:LinkButton>
                   </td>
               </tr>
            </table>
        </ContentTemplate>    
     </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content_rightarea" Runat="Server">
</asp:Content>

